import request from '@/utils/request'

// 获取列表
export function getList(token, data) {
  return request({
    url: 'access/json/get_list',
    method: 'post',
    params: { token },
    data
  })
}
// 获取列表
export function getSelect(token, data) {
  return request({
    url: 'access/json/get_select',
    method: 'post',
    params: { token },
    data
  })
}

// 添加
export function addInfo(token, data) {
  return request({
    url: 'access/json/add',
    method: 'post',
    params: { token },
    data
  })
}

// 删除
export function deleteInfo(token, data) {
  return request({
    url: 'access/json/delete',
    method: 'post',
    params: { token },
    data
  })
}

// 修改
export function editInfo(token, data) {
  return request({
    url: 'access/json/edit',
    method: 'post',
    params: { token },
    data
  })
}

// 获取单条数据
export function getInfo(token, data) {
  return request({
    url: 'access/json/info',
    method: 'post',
    params: { token },
    data
  })
}